import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
 {
  path:'/',
  //随便叫什么,在这里面写两栏布局
  //留心3：公共组件放到src/components，页面组件放到src/views，针对于两栏布局特殊，放到src/layout
  component:()=>import('@/layout/index.vue')
 }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
